import request from '@/utils/request'

const baseUrl='/admin/system/sysMenu'
export default {
  getPageList(page,limit,searchObj){
    return request({
      url:`${baseUrl}/findNodes`,
      method:"GET",
      params:searchObj
    })
  },
  saveMenu(data){
    return request({
      url:`${baseUrl}/save`,
      method:"POST",
      data,
    })
  },
  updateMenu(data){
    return request({
      url:`${baseUrl}/update`,
      method:"POST",
      data,
    })
  },
  removeMenu(id){
    return request({
      url:`${baseUrl}/remove/${id}`,
      method:"delete"
    })
  },
}
